package com.fysports.web.controller.plugin;

import com.jfinal.plugin.activerecord.Page;
import com.fysports.web.controller.AbstractBaseController;
import com.fysports.web.kit.commons.PathBizKit;
import com.fysports.web.model.user.BizUser;


/**
 * 选择用户控件
 * Created by konbluesky
 * Date : 14-9-3 下午3:43
 * Project : JdmData_WebServer
 */
public class SelectUserPluginController extends AbstractBaseController {
    public void index() {
        SelectUserVO suvo = new SelectUserVO(this);
        Page<BizUser> list = BizUser.dao.searchPaginate(suvo.getPageIndex(), 5, suvo.getConditions(),null,null);
        setBaseWebVO(suvo);
        setAttr("pageList", list);
        render(PathBizKit.getPageAdminPath("plugins/select_user_info.ftl"));
    }


    public void search() {
        index();
    }

}

